<br /><br />
<div id="view-content">
	<p>View script for controller <b>Crudclase</b> and script/action name <b>inscripciones</b></p>
</div>

<table>
	<thead>
		<tr>
			<th>Materia</th>
			<th>Profesor</th>
                        <th>Alumno</th>
		</tr>
	</thead>
	<tbody>
                <?php $anterior = ''; ?>
		<?php foreach ($this->inscripciones as $linea) :?>
                     <tr>
                        <?php if ($anterior != $linea['nombre'] ) : ?>
                            <th><?php echo $linea['nombre'] ; $anterior = $linea['nombre'];?></th>
                            <th><?php echo $linea['profe'] ; ?></th>
                        <?php else :?>
                            <th>"</th>
                            <th>"</th>
                        <?php endif; ?>
                            
                        
			<th><?php echo $linea['apellido'] ; ?></th>
		     </tr>
		<?php endforeach; ?>
	</tbody>
</table>